#!/usr/bin/env node

console.log("hello");

//创建实例
const program = require("commander");

//引入help.js
const help =  require('./lib/core/help')
help()
//引入create.js
const createCommand =  require('./lib/core/create')
createCommand()

//定义版本信息
program.version(require("./package.json").version);

// 把node index.js --version 的--version作为参数argv传入program 让其自动解析
program.parse(process.argv);
